package com.phenix.mvp.api;

import android.support.annotation.NonNull;

import com.phenix.mvp.data.Result;
import com.phenix.mvp.data.bean.User;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**@author  zhouphenix on 2016-7-31.
 */
public interface ApiService {
    @FormUrlEncoded
    @POST("app/login.json")
    Observable<Result<User>> login(@NonNull @Field("username") String username, @NonNull @Field("password") String password);


}
